<% content_for :sidebar do %>
  <%= sidebar_button_link 'Edit', edit_location_path(@location) %>
  <%= sidebar_button_link 'Back', locations_path %>
<% end %>

<p>
  <b>Department:</b>
  <%= @location.department&.name %>
</p>

<p>
  <b>Name:</b>
  <%= @location.name %>
</p>

<p>
  <b>Description:</b>
  <%= @location.description %>
</p>

<p>
  <b>Category:</b>
  <%= @location.category %>
</p>

<p>
  <b>Status:</b>
  <%= @location.status %>
</p>

<p>
  <b>Comments:</b>
  <%= @location.comments %>
</p>

<p>
  <b>Lat:</b>
  <%= @location.lat %>
</p>

<p>
  <b>Lon:</b>
  <%= @location.lon %>
</p>
